# Created by: Olivier Duchateau
# $FreeBSD$
#

PORTNAME=	radiotray
PORTVERSION=	0.7.3
CATEGORIES=	audio python
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	${PORTNAME:L}/releases

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	Online radio streaming player

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}xdg>=0.19:${PORTSDIR}/devel/py-xdg \
	${PYTHON_PKGNAMEPREFIX}dbus>=0.84:${PORTSDIR}/devel/py-dbus \
	${PYTHON_PKGNAMEPREFIX}notify>=0.1.1:${PORTSDIR}/devel/py-notify

USE_PYTHON=	2.6+
USE_PYDISTUTILS=	yes
USES=	gettext
INSTALLS_ICONS=	yes
USE_GNOME=	pygtk2
USE_GSTREAMER=	yes python soup

PLUGINS= GnomeMediaKeysPlugin.py \
	MateMediaKeysPlugin.py \
	SleepTimerPlugin.py \
	gnomemediakeys.plugin \
	matemediakeys.plugin \
	sleeptimer.config \
	sleeptimer.plugin

post-extract:
.for p in ${PLUGINS}
	@${RM} ${WRKSRC}/data/plugins/${p}
.endfor

post-patch:
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
		${WRKSRC}/src/lib/i18n.py \
		${WRKSRC}/src/lib/common.py

.include <bsd.port.mk>
